﻿using Abp.Application.Services.Dto;
using Abp.AutoMapper;
using Abp.Organizations;
using DualControl.Authorization.Users;
using DualControl.Departments;

namespace DualControl.Application.Organizations.Dto
{
    //[AutoMap(typeof(OrganizationUnit), typeof(Department))]
    [AutoMap(typeof(Department))]
    public class OrganizationUnitDto : AuditedEntityDto<long>
    {
        public long? ParentId { get; set; }

        public string Code { get; set; }

        public string DisplayName { get; set; }

        public int MemberCount { get; set; }

        public long? UserId { get; set; }

        public User User { get; set; }
    }
}